package tq.com.tqteacher.model;

import tq.com.tqcom.recyclerAdapter.declear.IRecyclerItem;


public class TQPublishItem extends IRecyclerItem {
    private TQNewPublish mNewPublish;

    public TQPublishItem(){};
    public TQPublishItem(TQNewPublish pNewPublish){
        mNewPublish = pNewPublish;
    }
    public int getPublishType() {
        if(mNewPublish != null){
            return mNewPublish.getType();
        }
        return TQPublishType.TYPE_TB;
    }

    public void setNewPublish(TQNewPublish pNewPublish) {
        mNewPublish = pNewPublish;
    }

    public TQNewPublish getNewPublish(){
        return mNewPublish;
    }
}
